How to auto-number rows in a table